﻿#ifndef TABEDITER_H
#define TABEDITER_H

#include <QWidget>

namespace Ui {
class TabEditer;
}

class TabEditer : public QWidget
{
    Q_OBJECT

public:
    explicit TabEditer(QWidget *parent = nullptr);
    ~TabEditer();

    QString text() const;
    void setText(const QString &text);

    QString fileName() const;
    void setFileName(const QString &name);

    QString filePath() const;
    void setFilePath(const QString &path);

public slots:
    void readCocument(const QString &fileName);
    void saveDocument(const QString &fileName);

private:
    Ui::TabEditer *ui;

    QString m_fileName;
    QString m_filePath;
};

#endif // TABEDITER_H
